package org.edu.modules.portal.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;

import org.jeecgframework.poi.excel.annotation.Excel;


@TableName("ve_site_category_projecttype")
@ApiModel(value = "ve_site_category_projecttype对象", description = "栏目关联项目类型")
public class VeSiteCategoryProjecttype
        implements Serializable {
    private static final long serialVersionUID = 1L;
    @TableId(type = IdType.AUTO)
    @ApiModelProperty("id")
    private Integer id;
    @Excel(name = "网站栏目ID", width = 15.0D)
    @ApiModelProperty("网站栏目ID")
    private Integer cateid;

    public org.edu.modules.portal.entity.VeSiteCategoryProjecttype setId(Integer id) {
        this.id = id;
        return this;
    }

    @Excel(name = "项目类型ID", width = 15.0D)
    @ApiModelProperty("项目类型ID")
    private Integer projecttypeid;
    @Excel(name = "站点ID", width = 15.0D)
    @ApiModelProperty("站点ID")
    private Integer siteid;
    @Excel(name = "多租户id", width = 15.0D)
    @ApiModelProperty("多租户id")
    private Integer placeId;

    public org.edu.modules.portal.entity.VeSiteCategoryProjecttype setCateid(Integer cateid) {
        this.cateid = cateid;
        return this;
    }

    public org.edu.modules.portal.entity.VeSiteCategoryProjecttype setProjecttypeid(Integer projecttypeid) {
        this.projecttypeid = projecttypeid;
        return this;
    }

    public org.edu.modules.portal.entity.VeSiteCategoryProjecttype setSiteid(Integer siteid) {
        this.siteid = siteid;
        return this;
    }

    public org.edu.modules.portal.entity.VeSiteCategoryProjecttype setPlaceId(Integer placeId) {
        this.placeId = placeId;
        return this;
    }

    public String toString() {
        return "VeSiteCategoryProjecttype(id=" + getId() + ", cateid=" + getCateid() + ", projecttypeid=" + getProjecttypeid() + ", siteid=" + getSiteid() + ", placeId=" + getPlaceId() + ")";
    }


    public boolean equals(Object o) {
        if (o == this) return true;
        if (!(o instanceof org.edu.modules.portal.entity.VeSiteCategoryProjecttype)) return false;
        org.edu.modules.portal.entity.VeSiteCategoryProjecttype other = (org.edu.modules.portal.entity.VeSiteCategoryProjecttype) o;
        if (!other.canEqual(this)) return false;
        Object this$id = getId(), other$id = other.getId();
        if ((this$id == null) ? (other$id != null) : !this$id.equals(other$id)) return false;
        Object this$cateid = getCateid(), other$cateid = other.getCateid();
        if ((this$cateid == null) ? (other$cateid != null) : !this$cateid.equals(other$cateid)) return false;
        Object this$projecttypeid = getProjecttypeid(), other$projecttypeid = other.getProjecttypeid();
        if ((this$projecttypeid == null) ? (other$projecttypeid != null) : !this$projecttypeid.equals(other$projecttypeid))
            return false;
        Object this$siteid = getSiteid(), other$siteid = other.getSiteid();
        if ((this$siteid == null) ? (other$siteid != null) : !this$siteid.equals(other$siteid)) return false;
        Object this$placeId = getPlaceId(), other$placeId = other.getPlaceId();
        return !((this$placeId == null) ? (other$placeId != null) : !this$placeId.equals(other$placeId));
    }

    protected boolean canEqual(Object other) {
        return other instanceof org.edu.modules.portal.entity.VeSiteCategoryProjecttype;
    }

    public int hashCode() {
        int PRIME = 59;
        Integer result = 1;
        Object $id = getId();
        result = result * 59 + (($id == null) ? 43 : $id.hashCode());
        Object $cateid = getCateid();
        result = result * 59 + (($cateid == null) ? 43 : $cateid.hashCode());
        Object $projecttypeid = getProjecttypeid();
        result = result * 59 + (($projecttypeid == null) ? 43 : $projecttypeid.hashCode());
        Object $siteid = getSiteid();
        result = result * 59 + (($siteid == null) ? 43 : $siteid.hashCode());
        Object $placeId = getPlaceId();
        return result * 59 + (($placeId == null) ? 43 : $placeId.hashCode());
    }


    public Integer getId() {
        return this.id;
    }

    public Integer getCateid() {
        return this.cateid;
    }

    public Integer getProjecttypeid() {
        return this.projecttypeid;
    }

    public Integer getSiteid() {
        return this.siteid;
    }

    public Integer getPlaceId() {
        return this.placeId;
    }
}


